/**
 * @Author: 耿立强
 * @Date: 2019/6/20
 * @Last Modified by:   耿立强
 * @Last Modified time: 2019-06-20 15:45:00
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 总成与配件关系维护列表
export const assemblyPartRecord = params => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/assemblyPartRecord`, {params});

//新增总成与法规关系维
export const addThreeAssemblyPart = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/addThreeAssemblyPart`, params);
//更新状态
export const updateStatus = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/updateStatus`, params);
//获取法规列表
export const threeInfoList = params => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/threeInfoList`, {params});
//根据法规获取总成代码
export const assemblyList = params => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/assemblyList`, {params});


//下载模板
export const downAssemblyPartTem = params => {
  return axios({
    url:`${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/downAssemblyPartTem`,
    method:'get',
    // params:params,
    responseType: 'blob'
  });
};

//导出列表
export const exportAssemblyPartRecord = params =>
{
  return axios({
    url: `${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/exportAssemblyPartRecord`,
    method: 'get',
    params:params,
    responseType: 'blob'
  });
};



